/*
** convert_base.c for convert_base in /home/goupil_r//afs/Jour_08
** 
** Made by robin goupil
** Login   <goupil_r@epitech.net>
** 
** Started on  Wed Oct 10 09:46:41 2012 robin goupil
** Last update Wed Oct 10 11:00:24 2012 robin goupil
*/

#include <stdlib.h>

char	*convert_base(char *nbr, char *base_from, char *base_to)
{
  int	nb_i;
  int	nb_bis;
  int	nb_size;
  char	*out;

  nb_i = my_getnbr_base(nbr, base_from);
  nb_bis = nb_i;
  out = malloc(33 * sizeof(char));
  my_convertnbr_base(nb_i, base_to, out);
  return (out);
}
